clk-bcm2835: Correct the prediv logic
authorPhil Elwell <phil@raspberrypi.org>
Wed, 1 Mar 2017 16:06:53 +0000 (16:06 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:00:24 +0000 (01:00 +0000)
commitb9d10862685a55946fc9c308fc258a7b488bda75
treebfb714aa6adbed7d1a3e90b934d1455e8c291e9c
parent8ac1ec83952760081f158bd7340856b526a28f81
clk-bcm2835: Correct the prediv logic

If a clock has the prediv flag set, both the integer and fractional
parts must be scaled when calculating the resulting frequency.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/clk/bcm/clk-bcm2835.c